<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目验证</title>
    <script src="/static/bflow/assets/js/scriptLib.js"></script>
    <script src="/static/bflow/assets/js/tableScriptLib.js"></script>
    <script src="/static/bflow/assets/js/bootsTableUtil.js"></script>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1><span id="pageTitle">项目审批</span>
            <small><a href="/index.html" class="btn btn-link">首页</a></small>
        </h1>
    </div>
    <ul class="nav nav-tabs">
        <li class=""><a href="/static/bflow/ui/example/neg/list.html"><span>全部</span></a></li>
        <li class=""><a href="/static/bflow/ui/example/neg/assignList.html"><span>分派</span></a></li>
        <li id="nav-tab-valid-true" class=""><a href="/static/bflow/ui/example/neg/auditList.html?isValid=true"><span>验证中</span></a></li>
        <li id="nav-tab-valid-false" class=""><a href="/static/bflow/ui/example/neg/auditList.html"><span>待审批</span></a></li>
    </ul>
    <table id="dataList" data-mobile-responsive="true">
        <thead>
        <tr>
            <th data-formatter="indexFormatter">序号</th>
            <th data-field="id" data-visible="false">任务ID</th>
            <th data-field="createUname">上个处理人</th>
            <th data-field="instance.extVarchar1" data-formatter="proNameFormatter">项目名</th>
            <th data-field="instance.extBigint2">项目ID</th>
            <th data-field="instance.extVarchar2">城市</th>
            <th data-field="instance.startUname">提交人</th>
            <th data-field="instance.extBigint1">议标ID</th>
            <th data-field="instance.extVarchar3" data-visible="false">资源UUID</th>
            <th data-field="instance.extVarchar4" data-visible="false">资源网址</th>
            <th data-field="instance.extVarchar5" data-visible="false">企业法人身份证</th>
            <th data-field="instance.extDatetime1">项目发布日期</th>
            <th data-field="instance.extDatetime2">报名截止时间</th>
            <th data-field="instance.extNumeric1">标的</th>
            <th data-field="instance.createTime" data-sortable="true" data-order="desc">提交时间</th>
            <th data-formatter="operationFormatter">操作</th>
        </tr>
        </thead>
        <tbody></tbody>
    </table>
</div>
</body>
<script type="text/javascript">
    //初始化 编辑页码标题
    PageUtil.initEditPageTitle("项目验证", "isValid")

    var isValid = getBrowserQueryVar("isValid", false);
    $("#nav-tab-valid-"+isValid).addClass("active");
    //加载数据
    BootstrapTableUtil.initTableDataByServer("/example/neg/auditList?isValid="+isValid);

    function proNameFormatter(value, row, index) {
        var link = '<a href="/static/bflow/ui/example/neg/view.html?instanceId='+row.instance.id+'">'+value+'</a>';
        return link;
    }

    function operationFormatter(value, row, index) {
        var buts = '<a href="/static/bflow/ui/example/neg/audit.html?isValid='+isValid+'&taskId='+row.id+'" class="btn btn-primary btn-xs">处理</a>';
        return buts;
    }
</script>
</html>